#include "mainwindow.h"
#include <QApplication>
#include <QTranslator>
//#include "csscommonhelper.h"
#include "common.h"
#include "inifile.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    //CommonHelper::setStyle("D:/PartTimeJob/FaceProject/NetfaceContrast/css/default.qss");
    //CommonHelper::setStyle(":/css/default.qss");
    QString strPath = QCoreApplication::applicationDirPath();

    CCommon::Instance();
    CCommon::Instance()->strAppDir = strPath;

    CIniFile iniFile(strPath+"/Facecfg.ini");
    QTranslator tanslator;
    tanslator.load(":/languages/NetfaceContrast.qm");
    a.installTranslator(&tanslator);

    MainWindow w;
    w.setGeometry(300, 100, 1400, 800);
    w.show();
    return a.exec();
}
